package com.jy.adscm.operation.base.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-01-07
 */
public class TaskManager implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String taskName;
    private String taskContent;
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    private Date createDate;
    private String dept;
    @TableField(exist = false)
    private String deptName;
    private String performer;
    @TableField(exist = false)
    private String performerName;
    private Date finishDate;
    @TableField("isReceived")
    private String isReceived;
    private Date receivedDate;
    private String receivedDescription;
    private Date startDate;
    private Date startCreateDate;
    private Date endDate;
    private Date endDateCreateDate;
    private String taskResult;
    private String taskSelfEvaluation;
    private String taskSelfDescription;
    @TableField("task_state")
    private Integer taskState;
    @TableField("isReviewTask")
    private  String isReviewTask;
    @TableField("reviewResult")
    private  String  reviewResult;
    @TableField("reviewTime")
    private Date reviewTime;
    @TableField("reviewDescription")
   private String  reviewDescription;
    //0是委派任务，1是每日任务2是周总结，3是月总结
    @TableField("isEveryDayTask")
   private  String isEveryDayTask;
   private  String isCreatorUpdate;
   private   String isPerformerUpdate;
    public String getIsCreatorUpdate() {
        return isCreatorUpdate;
    }

    public void setIsCreatorUpdate(String isCreatorUpdate) {
        this.isCreatorUpdate = isCreatorUpdate;
    }

    public String getIsPerformerUpdate() {
        return isPerformerUpdate;
    }

    public void setIsPerformerUpdate(String isPerformerUpdate) {
        this.isPerformerUpdate = isPerformerUpdate;
    }

    public String getIsEveryDayTask() {
        return isEveryDayTask;
    }

    public void setIsEveryDayTask(String isEveryDayTask) {
        this.isEveryDayTask = isEveryDayTask;
    }

    public String getReviewDescription() {
        return reviewDescription;
    }

    public void setReviewDescription(String reviewDescription) {
        this.reviewDescription = reviewDescription;
    }

    public String getIsReviewTask() {
        return isReviewTask;
    }

    public void setIsReviewTask(String isReviewTask) {
        this.isReviewTask = isReviewTask;
    }

    public String getReviewResult() {
        return reviewResult;
    }

    public void setReviewResult(String reviewResult) {
        this.reviewResult = reviewResult;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getReviewTime() {
        return reviewTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setReviewTime(Date reviewTime) {
        this.reviewTime = reviewTime;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getPerformerName() {
        return performerName;
    }

    public void setPerformerName(String performerName) {
        this.performerName = performerName;
    }

    public Integer getTaskState() {
        return taskState;
    }

    public void setTaskState(Integer taskState) {
        this.taskState = taskState;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateDate() {
        return createDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getPerformer() {
        return performer;
    }

    public void setPerformer(String performer) {
        this.performer = performer;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getFinishDate() {
        return finishDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setFinishDate(Date finishDate) {
        this.finishDate = finishDate;
    }

    public String getIsReceived() {
        return isReceived;
    }

    public void setIsReceived(String isReceived) {
        this.isReceived = isReceived;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getReceivedDate() {
        return receivedDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setReceivedDate(Date receivedDate) {
        this.receivedDate = receivedDate;
    }

    public String getReceivedDescription() {
        return receivedDescription;
    }

    public void setReceivedDescription(String receivedDescription) {
        this.receivedDescription = receivedDescription;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getStartDate() {
        return startDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getStartCreateDate() {
        return startCreateDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setStartCreateDate(Date startCreateDate) {
        this.startCreateDate = startCreateDate;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getEndDate() {
        return endDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getEndDateCreateDate() {
        return endDateCreateDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setEndDateCreateDate(Date endDateCreateDate) {
        this.endDateCreateDate = endDateCreateDate;
    }

    public String getTaskResult() {
        return taskResult;
    }

    public void setTaskResult(String taskResult) {
        this.taskResult = taskResult;
    }

    public String getTaskSelfEvaluation() {
        return taskSelfEvaluation;
    }

    public void setTaskSelfEvaluation(String taskSelfEvaluation) {
        this.taskSelfEvaluation = taskSelfEvaluation;
    }

    public String getTaskSelfDescription() {
        return taskSelfDescription;
    }

    public void setTaskSelfDescription(String taskSelfDescription) {
        this.taskSelfDescription = taskSelfDescription;
    }

    @Override
    public String toString() {
        return "TaskManager{" +
        "id=" + id +
        ", taskName=" + taskName +
        ", taskContent=" + taskContent +
        ", creator=" + creator +
        ", createDate=" + createDate +
        ", dept=" + dept +
        ", performer=" + performer +
        ", finishDate=" + finishDate +
        ", isReceived=" + isReceived +
        ", receivedDate=" + receivedDate +
        ", receivedDescription=" + receivedDescription +
        ", startDate=" + startDate +
        ", startCreateDate=" + startCreateDate +
        ", endDate=" + endDate +
        ", endDateCreateDate=" + endDateCreateDate +
        ", taskResult=" + taskResult +
        ", taskSelfEvaluation=" + taskSelfEvaluation +
        ", taskSelfDescription=" + taskSelfDescription +
        "}";
    }
}
